//
//  HelperModel.m
//  CarWorld
//
//  Created by 李东方 on 15/3/28.
//  Copyright (c) 2015年 CarWorldTeam. All rights reserved.
//

#import "HelperModel.h"

@implementation HelperModel

- (void)dealloc
{
    [_icon release];
    [_title release];
    [_info release];
    [_text release];
    [_photo release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

-(void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"icon"])
    {
        [ImageDownLoader imageDownloaderWithURLString:value delegate:self tag:0];
    }
}

//ImageDownloaderDelegate代理方法
-(void)imageDownloader:(ImageDownLoader *)ImageDownloader didfinishLoadImage:(UIImage *)image
{
    self.photo = image;
}


-(void)imageDownloader:(ImageDownLoader *)ImageDownloader failWithError:(NSError *)error
{
    
}







@end
